wayland: Don't leak content formats
authorMatthias Clasen <mclasen@redhat.com>
Fri, 7 Aug 2020 00:00:49 +0000 (20:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 7 Aug 2020 00:02:33 +0000 (20:02 -0400)
We were not unreffing the formats here.

gdk/wayland/gdkdevice-wayland.c

index 6ca368d9aa4f3a509c47b2d46862cdee8925dcbd..0d773cf272dbe0f6ee2d5bc30101f6a5c543d6cb 100644 (file)
@@ -1187,6 +1187,8 @@ data_device_enter (void                  *data,
   gdk_wayland_drop_set_source_actions (seat->drop, seat->pending_source_actions);
   gdk_wayland_drop_set_action (seat->drop, seat->pending_action);
 
+  gdk_content_formats_unref (formats);
+
   gdk_wayland_seat_discard_pending_offer (seat);
 
   gdk_surface_get_origin (gdk_drop_get_surface (seat->drop), &origin_x, &origin_y);